package com.info33.platform.business.app.entity;

import com.info33.platform.business.app.dto.AppProtocolDTO;
import com.info33.platform.business.app.util.enmus.AppProtocolEnum;
import com.info33.platform.common.mvc.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * app - 协议
 *
 * @author admin
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AppProtocol extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "协议名称")
    private String name;

    @NotNull(groups = {AppProtocolDTO.PublicPage.class}, message = "类别不能为空")
    @ApiModelProperty(value = "类别：1/登录注册协议、2/飞手协议")
    private AppProtocolEnum type;

    @ApiModelProperty(value = "协议内容")
    private String content;

}